package com.example.springjpa.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.logging.Logger;

/**
 * @description:
 * @author: zsw
 * @time: 2021/4/12 11:23
 */
@RestController
@Slf4j
public class HelloController {


    @Value( "${server.port}" )
    String port;

    public String hi(String name) {

        log.debug( "debug log..." );
        log.info( "info log..." );
        log.warn( "warn log..." );

        return "hi " + name + " ,i am from port:" + port;
    }

}